<?php echo $this->docType('XHTML1_STRICT')?>
<html>
  <head>
    <?php
    $staticBaseUrl = $this->baseUrl();
    $request = Zend_Controller_Front::getInstance()->getRequest();
    $pageTitle =  $request->getModuleName() . '-' . $request->getActionName() . '-' . $request->getControllerName();
    $this->headMeta()
      ->appendHttpEquiv('Content-Type', 'text/html; charset=UTF-8');
    $this
       ->headTitle($pageTitle, Zend_View_Helper_Placeholder_Container_Abstract::PREPEND);
    ?>

    <?php echo $this->headTitle()->toString()."\n" ?>
    <?php echo $this->headMeta()->toString()."\n" ?>

    <?php
    $this->headLink(array(
        'rel' => 'favicon',
        'href' =>  $staticBaseUrl .'/images/favicon.ico' ,
        'type' => 'image/x-icon'),
      'PREPEND');

    $this->headLink()
      ->prependStylesheet($staticBaseUrl . '/externals/prettyphoto/css/prettyPhoto.css')
      ->prependStylesheet($staticBaseUrl . '/externals/superfish/css/superfish.css')
      ->prependStylesheet($staticBaseUrl . '/externals/flexslider/css/flexslider.css')
      ->prependStylesheet($staticBaseUrl . '/externals/tabs/tabs.css')
      ->prependStylesheet($staticBaseUrl . '/externals/chosen/chosen.css')
      ->prependStylesheet($staticBaseUrl . '/externals/uniform/css/uniform.default.css')
      ->prependStylesheet($staticBaseUrl . '/externals/tablesorter/themes/blue/style.css')
      ->prependStylesheet($staticBaseUrl . '/styles/main.css');

    $this->headScript()
      ->prependFile($staticBaseUrl . '/externals/prettyphoto/js/jquery.prettyPhoto.js')
      ->prependFile($staticBaseUrl . '/externals/superfish/js/hoverIntent.js')
      ->prependFile($staticBaseUrl . '/externals/superfish/js/superfish.js')
      ->prependFile($staticBaseUrl . '/externals/flexslider/js/jquery.flexslider.js')
      ->prependFile($staticBaseUrl . '/externals/tabs/tabs.js')
      ->prependFile($staticBaseUrl . '/externals/tablesorter/jquery.tablesorter.min.js')
      ->prependFile($staticBaseUrl . '/externals/tinymce/tiny_mce.js')
      ->prependFile($staticBaseUrl . '/externals/chosen/chosen.jquery.min.js')
      ->prependFile($staticBaseUrl . '/externals/uniform/jquery.uniform.min.js')
      ->prependFile($staticBaseUrl . '/scripts/jquery.js');


    ?>
    <?php echo $this->headLink()->toString()."\n" ?>
    <?php echo $this->headScript()->toString()."\n" ?>

    <script type="text/javascript" charset="utf-8">
      $(document).ready(function(){
        $("a[rel^='prettyPhoto']").prettyPhoto();
        $('.flexslider').flexslider();
      });
    </script>

  </head>
  <body>
    <div id="top">
      <div style="float: left;">
        <img width="64px" src="<?php echo $staticBaseUrl ;?>/images/futliga.jpg" title="FUT-Лига" >
      </div>

      <div class="title">
        <h3> <i style="font-family: Georgia">Официальный сайт крупнейшего турнира по футболу среди любителей </i></h3>
        <h1 style="font-family: Georgia"> TENNISI FUT-ЛИГИ </h1>
      </div>
      <div class="banner">
        <a href="http://plaza.kg" target="_blank" ><img src="<?php echo $staticBaseUrl ;?>/images/banner/plaza.jpg" alt="Дордой Plaza"></a>
      </div>
    </div>

    <div id="header"></div>
    <div id="global_wrapper">
      <?php echo $this->render('menu.phtml') ?>

      <div id="gutter"></div>
      <?php $module = Zend_Controller_Front::getInstance()->getRequest()->getModuleName();?>
      <?php $controller = Zend_Controller_Front::getInstance()->getRequest()->getControllerName();?>
      <?php $action = Zend_Controller_Front::getInstance()->getRequest()->getActionName();?>
      <?php if ($action != 'create'):?>
        <?php if(($module == 'default' && $controller != 'document')): ?>
          <div id="left">
            <?php echo $this->render('left.phtml')?>
          </div>
        <?php endif ?>
      <?php endif;?>

      <div id="<?php echo $module != 'default' || $controller == 'document'? $module . "_": "" ?>main">
        <?php echo $this->layout()->content; ?>
      </div>
      <?php if ($action != 'create'):?>
        <?php if(($module == 'default' && $controller != 'document')): ?>
          <div id="right">
            <?php echo $this->render('right.phtml') ?>
          </div>
        <?php endif;?>
      <?php endif;?>
      <div id="bottom">

      </div>

      <div class="clear">&nbsp;</div>
      <div id="footer"> &copy <a href="http://facebook.com/ibraghimov"> adik </div>
    </div>
  </body>
</html>